<?php
function sendHTMLMail($_to, $_html){
    $subject = 'Test';

    $headers = "From: tom@dpdk.nl\r\n";
    $headers .= "Reply-To: tom@dpdk.nl\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    
    mail($_to, $subject, $_html, $headers);
}

$mailTos = "tom@dpdk.nl,tomlous@gmail.com,tom@graphiq.nl";
$html = file_get_contents("mail.html");

$tos = split(",",$mailTos);

foreach ($tos as $to) {
    sendHTMLMail($to, $html);
}